#ifndef CLIENT_H
#define CLIENT_H

#include <QMainWindow>
#include <QDebug>
#include <QtNetwork/QtNetwork>
#include <QString>
#include <QException>
#include <QCryptographicHash>
#include "config.h"
#include "frmmain.h"

namespace Ui {
class Client;
}

class Client : public QMainWindow
{
    Q_OBJECT

public:
    explicit Client(QWidget *parent = 0);
    ~Client();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();
    void getData();
private:
    Ui::Client *ui;
    Config* config;
    QTcpSocket* client;
    QString server;
    qint16 port;
};

#endif // CLIENT_H
